from random import randint


def random_divider(total, divide):
    arr = []
    average = int(total / divide)
    remainder = total % divide

    if total < divide:
        return arr
    elif divide == 1:
        return [total]
    else:
        for _ in range(divide):
            arr.append(average)

    if average > 1:
        for i in range(divide):
            if i * 2 + 1 >= divide:
                break
            rand = randint(0, average - 1)

            if rand % 2 == 0:
                arr[i * 2] -= rand
                arr[i * 2 + 1] += rand
            else:
                arr[i * 2] += rand
                arr[i * 2 + 1] -= rand


    for i in range(remainder):
        rand = randint(0, divide - 1)
        arr[rand] += 1

    # _sum = 0
    # for i in arr:
    #     _sum += i
    # print(_sum)

    return arr



# for _ in range(20):
#     print(random_divider(203, 200))